package com.itgaoshu.hospitalproject.service.impl;

import com.itgaoshu.hospitalproject.bean.Area;
import com.itgaoshu.hospitalproject.mapper.AreaMapper;
import com.itgaoshu.hospitalproject.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaServiceImpl implements AreaService {
    @Autowired
    private AreaMapper areaMapper;

    public List<Area> findAllArea(Area area) {
        return areaMapper.findAllArea(area);
    }

    public int addArea(Area area) {
        return areaMapper.addArea(area);
    }

    public int count(Area area) {
        return areaMapper.count(area);
    }

    public int deleteArea(int areaId) {
        return areaMapper.deleteArea(areaId);
    }
}
